<%-- 
    Document   : registrace
    Created on : 17.5.2011, 19:24:14
    Author     : Lurtz
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div class="hlavni_text">
    <h2>Registrace</h2>
    <div> 
        <form action="ControllerRegistrace" method="get">
            <table id="registrace">
                <tr>
                    <td>
                        <label for="jmenoReg">Jméno:</label>
                    </td>
                    <td>
                        <input type="text" name="jmeno" id="jmenoReg" value="${sessionScope['novyUzivatel'].jmeno}"/>
                    </td>
                    <td>${sessionScope['ejmeno']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="prijmeniReg">Příjmení:</label>
                    </td>
                    <td>
                        <input type="text" name="prijmeni" id="prijmeniReg" value="${sessionScope['novyUzivatel'].prijmeni}"/>
                    </td>
                    <td>${sessionScope['eprij']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="mail">E-mail:</label>
                    </td>
                    <td>
                        <input type="text" name="mail" id="mailReg" value="${sessionScope['novyUzivatel'].email}"/>
                    </td>
                    <td>${sessionScope['eemail']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="telefon">Telefon:</label>
                    </td>
                    <td>
                        <input type="text" name="telefon" id="telefon" value="${sessionScope['novyUzivatel'].telefon}"/>
                    </td>
                    <td>${sessionScope['etel']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="hesloReg">Heslo:</label>
                    </td>
                    <td>
                        <input type="password" name="heslo" id="hesloReg" value="${sessionScope['novyUzivatel'].otevreneHeslo}"/>
                    </td>
                    <td>${sessionScope['eheslo']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="hesloReg">Heslo znovu:</label>
                    </td>
                    <td>
                        <input type="password" name="heslo2" id="hesloReg" <c:if test="${sessionScope['oheslo'] != null}">value="${sessionScope['novyUzivatel'].otevreneHeslo}"</c:if>/>
                    </td>
                    <td style="color: #00cc00">${sessionScope['oheslo']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="ulice">Ulice:</label>
                    </td>
                    <td>
                        <input type="text" name="ulice" id="ulice" value="${sessionScope['novyUzivatel'].adresa.ulice}"/>
                    </td>
                    <td>${sessionScope['eulice']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="cp">Číslo popisné:</label>
                    </td>
                    <td>
                        <input type="text" name="cp" id="cp" value="${sessionScope['novyUzivatel'].adresa.cp}"/>
                    </td>
                    <td>${sessionScope['ecp']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="mesto">Město:</label>
                    </td>
                    <td>
                        <input type="text" name="mesto" id="mesto" value="${sessionScope['novyUzivatel'].adresa.mesto}"/>
                    </td>
                    <td>${sessionScope['emesto']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="psc">PSČ:</label>
                    </td>
                    <td>
                        <input type="text" name="psc" id="psc" value="${sessionScope['novyUzivatel'].adresa.psc}"/>
                    </td>
                    <td>${sessionScope['epsc']}</td>
                </tr>
                <tr>
                    <td>
                        <label for="stat">Stát:</label>
                    </td>
                    <td>
                        <select name="stat">
                            <option value="CZ">CZ</option>
                            <option value="SK">SK</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="submit" name="submit" value="Registrovat"/>
                    </td>
                    <td>
                        <input type="reset" name="reset" value="Reset formulař"/>     
                    </td>
                </tr>
            </table>
            
            
        </form>
    </div>
</div>
